/**
 * 
 */
package com.taobao.snowsnow.hibernate.service;

import java.util.List;

import com.taobao.snowsnow.hibernate.pojo.Express;
import com.taobao.snowsnow.hibernate.pojo.PostFee;

/**
 * @author Tux
 *
 * 创建时间: 2011-4-29 上午09:53:48
 */
public interface PostFeeService extends BaseService {
	/**
	 * 按id来查找
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public PostFee findById(int id) throws Exception;
	
	public PostFee findByStateAndExpress(Express express, String state) throws Exception;
	
	/**
	 * 按名称来查找
	 * @param name
	 * @return
	 */
	public List<PostFee> findByName(String name) throws Exception;
	
	/**
	 * <p>按名称精准来查找
	 * @param name
	 * 			要查找的字符串
	 * @return
	 * 			查找到的Category
	 * @throws Exception
	 */
	public PostFee findByNamePrecise(String name) throws Exception;
	
	/**
	 * 查找全部
	 * @return
	 */
	public List<PostFee> findAll() throws Exception;
	
	
	/**
	 * 分页查找
	 * @return
	 */
	public List<PostFee> paging(int page, int limit) throws Exception;
	
	/**
	 * 获取全部客户的数量
	 * @return
	 */
	public long getTotal() throws Exception;
	
	/**
	 * 获取第一个
	 * @return
	 * @throws Exception
	 */
	public PostFee getFirstObject() throws Exception;
	
	/**
	 * 获取最后一个元素
	 * @return
	 * @throws Exception
	 */
	public PostFee getLastObject() throws Exception;
}
